<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ID Check</title>
<script>
function back(){
	window.close();
}
function back1(){
var doc=window.opener;
	var receiveMsg1=doc.document.getElementById("mid");	
	receiveMsg1.value="";
	doc.myfrm.mid.focus();
	window.close();
}
</script>

<style>

#main2,#main1{
	
	height: 133px;
	text-align: center;
	font-size:20px;
	border-top-right-radius:5px;
	border-bottom-right-radius:5px;
	border-top-left-radius:5px;
	border-bottom-left-radius:5px;
	box-shadow:4px 3px 6px #dddddd;
	border:3px solid #faa719;
	
}
#check2,#check1{
	width:60px;
	height:30px;	
	background-color: #faa719;
	font-family: 'Nanum Gothic', sans-serif;
	font-size:12px;
	color:#000000;	
	border:1px solid #faa719;
	border-top-right-radius:5px;
	border-bottom-right-radius:5px;
	border-top-left-radius:5px;
	border-bottom-left-radius:5px;
	box-shadow:4px 3px 6px #dddddd;
}
</style>

</head>
<body>
<jsp:useBean id="dao" class="connect.Login"/>
<%
 int rst = 0;
 String id = (String)request.getParameter("id");
 rst = dao.idCheck(id); 
%>

<%
if(rst == 1){
%>

<div id='main1'>
<br/>
<font color='red' face='Nanum Gothic' size='5'>중복된 아이디가 있습니다.</font><p/><br/>
<input type='button' id='check1' value='돌아가기' onclick='back1()'>
</div>

<%}else{ %>

<div id ='main2'>
<br/>
사용 가능한 아이디입니다.<p/><br/>
<input type='button' id='check2' value='사용하기' onclick='back()'>
</div>

<%} %>



</body>
</html>


